package com.modemMgr.vo;

public class User {
	private int user_id;
	private String user_code;
	private String user_name;
	private String user_passwd;
	private boolean is_valid;
	private int dept_id;
	private String dept_code;
	private String dept_name;
	private Role role;
	
	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append("user:{user_id:");
		sb.append(user_id);
		sb.append(",user_code:");
		sb.append(user_code);
		sb.append(",user_name:");
		sb.append(user_name);
		sb.append(",dept_id:");
		sb.append(dept_id);
		sb.append(",dept_code:");
		sb.append(dept_code);
		sb.append(",dept_name:");
		sb.append(dept_name);
		sb.append(",role:");
		sb.append(role);
		sb.append("}");
		
		return sb.toString();
	}
	
	public Role getRole() {
		return role;
	}

	public void setRole(Role role) {
		this.role = role;
	}

	public final int getUser_id() {
		return user_id;
	}

	public final void setUser_id(int userId) {
		user_id = userId;
	}

	public final String getUser_code() {
		return user_code;
	}

	public final void setUser_code(String userCode) {
		user_code = userCode;
	}

	public final String getUser_name() {
		return user_name;
	}

	public final void setUser_name(String userName) {
		user_name = userName;
	}

	public final String getUser_passwd() {
		return user_passwd;
	}

	public final void setUser_passwd(String userPasswd) {
		user_passwd = userPasswd;
	}

	public final boolean isIs_valid() {
		return is_valid;
	}

	public final void setIs_valid(boolean isValid) {
		is_valid = isValid;
	}

	public final int getDept_id() {
		return dept_id;
	}

	public final void setDept_id(int deptId) {
		dept_id = deptId;
	}

	public final String getDept_code() {
		return dept_code;
	}

	public final void setDept_code(String deptCode) {
		dept_code = deptCode;
	}

	public final String getDept_name() {
		return dept_name;
	}

	public final void setDept_name(String deptName) {
		dept_name = deptName;
	}
}